<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <title>修改手机号</title>
  <!-- Bootstrap 5 CSS -->
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css">
  
  <style>
    :root {
      --primary: #4F46E5;
      --secondary: #6B7280;
      --light: #F9FAFB;
      --dark: #1F2937;
      --white: #FFFFFF;
      --border: #E5E7EB;
      --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
      --success: #10B981;
      --danger: #EF4444;
      --gray: #9CA3AF;
      
      /* 不同风格主题色 */
      --style1: #3B82F6; /* 科技蓝 */
      --style2: #EC4899; /* 活力粉 */
      --style3: #10B981; /* 生态绿 */
      --style4: #F59E0B; /* 温暖橙 */
      --style5: #8B5CF6; /* 梦幻紫 */
      --style6: #111827; /* 商务黑 */
    }
    
    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      background-color: #f5f5f5;
      color: var(--dark);
      min-height: 100vh;
      padding: 0;
      margin: 0;
      transition: background-color 0.3s ease;
    }
    
    .container {
      max-width: 420px;
      margin: 0 auto;
      background-color: var(--white);
      min-height: 100vh;
      box-shadow: var(--shadow);
      overflow: hidden;
      position: relative;
      transition: background-color 0.3s ease;
    }
    
    /* 主页面容器 */
    .phone-page {
      display: none;
      min-height: 100vh;
      flex-direction: column;
    }
    
    .phone-page.active {
      display: flex;
      animation: fadeIn 0.3s ease forwards;
    }
    
    /* 顶部导航栏 */
    .page-header {
      padding: 18px 20px;
      position: relative;
      text-align: center;
      border-bottom: 1px solid var(--border);
      background-color: var(--white);
      transition: all 0.3s ease;
      z-index: 10;
    }
    
    .page-title {
      font-size: 18px;
      font-weight: 600;
      margin: 0;
    }
    
    .back-btn {
      position: absolute;
      left: 20px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: var(--dark);
      font-size: 20px;
      cursor: pointer;
      transition: all 0.2s ease;
    }
    
    .back-btn:active {
      transform: translateY(-50%) scale(0.9);
    }
    
    /* 内容区域 */
    .content {
      flex-grow: 1;
      padding: 30px 20px;
      display: flex;
      flex-direction: column;
    }
    
    .page-description {
      color: var(--secondary);
      font-size: 14px;
      margin-bottom: 30px;
      text-align: center;
    }
    
    .current-phone {
      background-color: var(--light);
      padding: 15px;
      border-radius: 8px;
      margin-bottom: 30px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    
    .current-phone-label {
      font-size: 14px;
      color: var(--secondary);
    }
    
    .current-phone-number {
      font-size: 15px;
      font-weight: 500;
    }
    
    /* 表单样式 */
    .form-group {
      margin-bottom: 20px;
    }
    
    .form-label {
      display: block;
      margin-bottom: 8px;
      font-size: 14px;
      font-weight: 500;
    }
    
    .form-control {
      width: 100%;
      padding: 12px 15px;
      border-radius: 8px;
      border: 1px solid var(--border);
      background-color: var(--white);
      font-size: 15px;
      transition: all 0.2s ease;
    }
    
    .form-control:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
    }
    
    .verify-code-group {
      display: flex;
      gap: 10px;
    }
    
    .verify-code-input {
      flex-grow: 1;
    }
    
    .get-code-btn {
      padding: 0 15px;
      background-color: var(--light);
      color: var(--primary);
      border: 1px solid var(--border);
      border-radius: 8px;
      font-size: 14px;
      cursor: pointer;
      transition: all 0.2s ease;
      white-space: nowrap;
    }
    
    .get-code-btn:hover {
      background-color: rgba(79, 70, 229, 0.05);
    }
    
    .get-code-btn:active {
      transform: scale(0.98);
    }
    
    .get-code-btn.disabled {
      color: var(--gray);
      background-color: var(--light);
      cursor: not-allowed;
    }
    
    .btn-primary {
      width: 100%;
      padding: 13px;
      background-color: var(--primary);
      color: white;
      border: none;
      border-radius: 8px;
      font-size: 16px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s ease;
      margin-top: 10px;
    }
    
    .btn-primary:hover {
      opacity: 0.9;
    }
    
    .btn-primary:active {
      transform: scale(0.98);
    }
    
    .btn-primary:disabled {
      background-color: var(--gray);
      cursor: not-allowed;
      transform: none;
      opacity: 1;
    }
    
    /* 安全提示 */
    .security-tips {
      margin-top: 30px;
      background-color: var(--light);
      padding: 15px;
      border-radius: 8px;
    }
    
    .tips-title {
      font-size: 14px;
      font-weight: 600;
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    
    .tips-list {
      padding-left: 24px;
      margin: 0;
    }
    
    .tips-list li {
      font-size: 13px;
      color: var(--secondary);
      margin-bottom: 6px;
    }
    
    .tips-list li:last-child {
      margin-bottom: 0;
    }
    
    /* 样式切换器 */
    .style-switcher {
      position: fixed;
      top: 20px;
      right: 20px;
      z-index: 1010;
      background-color: white;
      border-radius: 8px;
      box-shadow: var(--shadow);
      overflow: hidden;
      width: 180px;
      transition: all 0.3s ease;
      transform: translateX(0);
      opacity: 1;
    }
    
    .style-switcher.hidden {
      transform: translateX(200px);
      opacity: 0;
      pointer-events: none;
    }
    
    .switcher-toggle {
      position: fixed;
      top: 20px;
      right: 20px;
      z-index: 1020;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background-color: var(--primary);
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: var(--shadow);
      border: none;
      font-size: 18px;
      cursor: pointer;
      transition: all 0.3s ease;
    }
    
    .switcher-header {
      padding: 10px 16px;
      font-size: 14px;
      font-weight: 600;
      border-bottom: 1px solid #eee;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    
    .switcher-close {
      background: none;
      border: none;
      color: var(--secondary);
      font-size: 16px;
      cursor: pointer;
    }
    
    .switcher-option {
      padding: 12px 16px;
      font-size: 14px;
      cursor: pointer;
      transition: background-color 0.2s;
      display: flex;
      align-items: center;
    }
    
    .switcher-color {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      margin-right: 10px;
    }
    
    .switcher-option:hover {
      background-color: #f9f9f9;
    }
    
    .switcher-option.active {
      background-color: var(--primary);
      color: white;
    }
    
    /* 风格1：科技蓝 */
    .style-1 {
      --primary: var(--style1);
    }
    
    .style-1 .security-tips {
      border-left: 3px solid var(--primary);
    }
    
    /* 风格2：活力粉 */
    .style-2 {
      --primary: var(--style2);
    }
    
    .style-2 .page-header {
      background-color: var(--primary);
      color: white;
      border-bottom: none;
    }
    
    .style-2 .back-btn {
      color: white;
    }
    
    .style-2 .form-control,
    .style-2 .verify-code-input,
    .style-2 .get-code-btn,
    .style-2 .btn-primary {
      border-radius: 20px;
    }
    
    .style-2 .btn-primary {
      box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
    }
    
    /* 风格3：生态绿 */
    .style-3 {
      --primary: var(--style3);
    }
    
    .style-3 .container {
      background-color: #F8FAFC;
    }
    
    .style-3 .form-control {
      background-color: white;
      border-color: rgba(16, 185, 129, 0.2);
    }
    
    .style-3 .security-tips {
      background-color: rgba(16, 185, 129, 0.05);
    }
    
    .style-3 .current-phone {
      background-color: rgba(16, 185, 129, 0.05);
      border: 1px dashed var(--primary);
    }
    
    /* 风格4：温暖橙 */
    .style-4 {
      --primary: var(--style4);
    }
    
    .style-4 .page-title {
      color: var(--primary);
      font-weight: 700;
    }
    
    .style-4 .form-label,
    .style-4 .current-phone-label {
      color: var(--primary);
    }
    
    .style-4 .btn-primary {
      background: linear-gradient(45deg, var(--primary), #FBBF24);
    }
    
    /* 风格5：梦幻紫 */
    .style-5 {
      --primary: var(--style5);
    }
    
    .style-5 .container {
      background-color: #FCFAFF;
    }
    
    .style-5 .form-control:focus {
      box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
    }
    
    .style-5 .current-phone {
      border-radius: 12px;
      background-color: rgba(139, 92, 246, 0.05);
    }
    
    .style-5 .security-tips {
      border-radius: 12px;
    }
    
    /* 风格6：商务黑 */
    .style-6 {
      --primary: #60A5FA;
      --secondary: #9CA3AF;
      --light: #1F2937;
      --dark: #F9FAFB;
      --white: #111827;
      --border: #374151;
      --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }
    
    .style-6 body {
      background-color: #030712;
    }
    
    .style-6 .container {
      background-color: var(--white);
    }
    
    .style-6 .page-header {
      background-color: var(--light);
      border-bottom-color: var(--border);
    }
    
    .style-6 .back-btn,
    .style-6 .page-title {
      color: var(--dark);
    }
    
    .style-6 .form-control {
      background-color: var(--light);
      border-color: var(--border);
      color: var(--dark);
    }
    
    .style-6 .current-phone {
      background-color: var(--light);
    }
    
    .style-6 .security-tips {
      background-color: var(--light);
    }
    
    .style-6 .tips-list li {
      color: var(--secondary);
    }
    
    .style-6 .style-switcher {
      background-color: var(--light);
    }
    
    .style-6 .switcher-header {
      border-bottom-color: var(--border);
      color: var(--dark);
    }
    
    .style-6 .switcher-option {
      color: var(--dark);
    }
    
    .style-6 .switcher-option:hover {
      background-color: rgba(255, 255, 255, 0.1);
    }
    
    /* 动画效果 */
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }
    
    /* 响应式调整 */
    @media (max-width: 360px) {
      .content {
        padding: 20px 15px;
      }
      
      .verify-code-group {
        flex-direction: column;
      }
      
      .get-code-btn {
        padding: 12px 15px;
        width: 100%;
      }
    }
  </style>
</head>
<body class="style-1">
  <!-- 样式切换器 -->
  <button class="switcher-toggle">
    <i class="fa fa-paint-brush"></i>
  </button>
  
  <div class="style-switcher hidden">
    <div class="switcher-header">
      选择页面样式
      <button class="switcher-close"><i class="fa fa-times"></i></button>
    </div>
    <div class="switcher-option active" data-style="1">
      <span class="switcher-color" style="background-color: var(--style1);"></span>
      科技蓝
    </div>
    <div class="switcher-option" data-style="2">
      <span class="switcher-color" style="background-color: var(--style2);"></span>
      活力粉
    </div>
    <div class="switcher-option" data-style="3">
      <span class="switcher-color" style="background-color: var(--style3);"></span>
      生态绿
    </div>
    <div class="switcher-option" data-style="4">
      <span class="switcher-color" style="background-color: var(--style4);"></span>
      温暖橙
    </div>
    <div class="switcher-option" data-style="5">
      <span class="switcher-color" style="background-color: var(--style5);"></span>
      梦幻紫
    </div>
    <div class="switcher-option" data-style="6">
      <span class="switcher-color" style="background-color: var(--style6);"></span>
      商务黑
    </div>
  </div>
  
  <div class="container">
    <!-- 风格1：科技蓝 -->
    <div class="phone-page active" id="page1">
      <div class="page-header">
        <button class="back-btn" id="back1"><i class="fa fa-chevron-left"></i></button>
        <h1 class="page-title">修改手机号</h1>
      </div>
      
      <div class="content">
        <p class="page-description">请输入新的手机号并完成验证以修改</p>
        
        <div class="current-phone">
          <span class="current-phone-label">当前手机号</span>
          <span class="current-phone-number">138****5678</span>
        </div>
        
        <form id="phoneForm1">
          <div class="form-group">
            <label class="form-label" for="newPhone1">新手机号</label>
            <input type="tel" class="form-control" id="newPhone1" placeholder="请输入新手机号" required pattern="1[3-9]\d{9}">
          </div>
          
          <div class="form-group">
            <label class="form-label" for="verifyCode1">验证码</label>
            <div class="verify-code-group">
              <input type="text" class="form-control verify-code-input" id="verifyCode1" placeholder="请输入验证码" required pattern="\d{6}">
              <button type="button" class="get-code-btn" id="getCode1">获取验证码</button>
            </div>
          </div>
          
          <div class="form-group">
            <label class="form-label" for="password1">登录密码</label>
            <input type="password" class="form-control" id="password1" placeholder="请输入登录密码确认" required>
          </div>
          
          <button type="submit" class="btn-primary" id="submit1" disabled>确认修改</button>
        </form>
        
        <div class="security-tips">
          <div class="tips-title">
            <i class="fa fa-shield"></i> 安全提示
          </div>
          <ul class="tips-list">
            <li>修改手机号后，将使用新手机号登录</li>
            <li>验证码有效期为5分钟</li>
            <li>如遇问题，请联系客服</li>
            <li>保护好您的账号信息，勿向他人泄露</li>
          </ul>
        </div>
      </div>
    </div>
    
    <!-- 风格2：活力粉 -->
    <div class="phone-page" id="page2">
      <div class="page-header">
        <button class="back-btn" id="back2"><i class="fa fa-chevron-left"></i></button>
        <h1 class="page-title">修改手机号</h1>
      </div>
      
      <div class="content">
        <p class="page-description">请输入新的手机号并完成验证以修改</p>
        
        <div class="current-phone">
          <span class="current-phone-label">当前手机号</span>
          <span class="current-phone-number">139****4321</span>
        </div>
        
        <form id="phoneForm2">
          <div class="form-group">
            <label class="form-label" for="newPhone2">新手机号</label>
            <input type="tel" class="form-control" id="newPhone2" placeholder="请输入新手机号" required pattern="1[3-9]\d{9}">
          </div>
          
          <div class="form-group">
            <label class="form-label" for="verifyCode2">验证码</label>
            <div class="verify-code-group">
              <input type="text" class="form-control verify-code-input" id="verifyCode2" placeholder="请输入验证码" required pattern="\d{6}">
              <button type="button" class="get-code-btn" id="getCode2">获取验证码</button>
            </div>
          </div>
          
          <div class="form-group">
            <label class="form-label" for="password2">登录密码</label>
            <input type="password" class="form-control" id="password2" placeholder="请输入登录密码确认" required>
          </div>
          
          <button type="submit" class="btn-primary" id="submit2" disabled>确认修改</button>
        </form>
        
        <div class="security-tips">
          <div class="tips-title">
            <i class="fa fa-shield"></i> 安全提示
          </div>
          <ul class="tips-list">
            <li>修改手机号后，将使用新手机号登录</li>
            <li>验证码有效期为5分钟</li>
            <li>如遇问题，请联系客服</li>
            <li>保护好您的账号信息，勿向他人泄露</li>
          </ul>
        </div>
      </div>
    </div>
    
    <!-- 风格3：生态绿 -->
    <div class="phone-page" id="page3">
      <div class="page-header">
        <button class="back-btn" id="back3"><i class="fa fa-chevron-left"></i></button>
        <h1 class="page-title">修改手机号</h1>
      </div>
      
      <div class="content">
        <p class="page-description">请输入新的手机号并完成验证以修改</p>
        
        <div class="current-phone">
          <span class="current-phone-label">当前手机号</span>
          <span class="current-phone-number">135****8765</span>
        </div>
        
        <form id="phoneForm3">
          <div class="form-group">
            <label class="form-label" for="newPhone3">新手机号</label>
            <input type="tel" class="form-control" id="newPhone3" placeholder="请输入新手机号" required pattern="1[3-9]\d{9}">
          </div>
          
          <div class="form-group">
            <label class="form-label" for="verifyCode3">验证码</label>
            <div class="verify-code-group">
              <input type="text" class="form-control verify-code-input" id="verifyCode3" placeholder="请输入验证码" required pattern="\d{6}">
              <button type="button" class="get-code-btn" id="getCode3">获取验证码</button>
            </div>
          </div>
          
          <div class="form-group">
            <label class="form-label" for="password3">登录密码</label>
            <input type="password" class="form-control" id="password3" placeholder="请输入登录密码确认" required>
          </div>
          
          <button type="submit" class="btn-primary" id="submit3" disabled>确认修改</button>
        </form>
        
        <div class="security-tips">
          <div class="tips-title">
            <i class="fa fa-shield"></i> 安全提示
          </div>
          <ul class="tips-list">
            <li>修改手机号后，将使用新手机号登录</li>
            <li>验证码有效期为5分钟</li>
            <li>如遇问题，请联系客服</li>
            <li>保护好您的账号信息，勿向他人泄露</li>
          </ul>
        </div>
      </div>
    </div>
    
    <!-- 风格4：温暖橙 -->
    <div class="phone-page" id="page4">
      <div class="page-header">
        <button class="back-btn" id="back4"><i class="fa fa-chevron-left"></i></button>
        <h1 class="page-title">修改手机号</h1>
      </div>
      
      <div class="content">
        <p class="page-description">请输入新的手机号并完成验证以修改</p>
        
        <div class="current-phone">
          <span class="current-phone-label">当前手机号</span>
          <span class="current-phone-number">136****2345</span>
        </div>
        
        <form id="phoneForm4">
          <div class="form-group">
            <label class="form-label" for="newPhone4">新手机号</label>
            <input type="tel" class="form-control" id="newPhone4" placeholder="请输入新手机号" required pattern="1[3-9]\d{9}">
          </div>
          
          <div class="form-group">
            <label class="form-label" for="verifyCode4">验证码</label>
            <div class="verify-code-group">
              <input type="text" class="form-control verify-code-input" id="verifyCode4" placeholder="请输入验证码" required pattern="\d{6}">
              <button type="button" class="get-code-btn" id="getCode4">获取验证码</button>
            </div>
          </div>
          
          <div class="form-group">
            <label class="form-label" for="password4">登录密码</label>
            <input type="password" class="form-control" id="password4" placeholder="请输入登录密码确认" required>
          </div>
          
          <button type="submit" class="btn-primary" id="submit4" disabled>确认修改</button>
        </form>
        
        <div class="security-tips">
          <div class="tips-title">
            <i class="fa fa-shield"></i> 安全提示
          </div>
          <ul class="tips-list">
            <li>修改手机号后，将使用新手机号登录</li>
            <li>验证码有效期为5分钟</li>
            <li>如遇问题，请联系客服</li>
            <li>保护好您的账号信息，勿向他人泄露</li>
          </ul>
        </div>
      </div>
    </div>
    
    <!-- 风格5：梦幻紫 -->
    <div class="phone-page" id="page5">
      <div class="page-header">
        <button class="back-btn" id="back5"><i class="fa fa-chevron-left"></i></button>
        <h1 class="page-title">修改手机号</h1>
      </div>
      
      <div class="content">
        <p class="page-description">请输入新的手机号并完成验证以修改</p>
        
        <div class="current-phone">
          <span class="current-phone-label">当前手机号</span>
          <span class="current-phone-number">137****9876</span>
        </div>
        
        <form id="phoneForm5">
          <div class="form-group">
            <label class="form-label" for="newPhone5">新手机号</label>
            <input type="tel" class="form-control" id="newPhone5" placeholder="请输入新手机号" required pattern="1[3-9]\d{9}">
          </div>
          
          <div class="form-group">
            <label class="form-label" for="verifyCode5">验证码</label>
            <div class="verify-code-group">
              <input type="text" class="form-control verify-code-input" id="verifyCode5" placeholder="请输入验证码" required pattern="\d{6}">
              <button type="button" class="get-code-btn" id="getCode5">获取验证码</button>
            </div>
          </div>
          
          <div class="form-group">
            <label class="form-label" for="password5">登录密码</label>
            <input type="password" class="form-control" id="password5" placeholder="请输入登录密码确认" required>
          </div>
          
          <button type="submit" class="btn-primary" id="submit5" disabled>确认修改</button>
        </form>
        
        <div class="security-tips">
          <div class="tips-title">
            <i class="fa fa-shield"></i> 安全提示
          </div>
          <ul class="tips-list">
            <li>修改手机号后，将使用新手机号登录</li>
            <li>验证码有效期为5分钟</li>
            <li>如遇问题，请联系客服</li>
            <li>保护好您的账号信息，勿向他人泄露</li>
          </ul>
        </div>
      </div>
    </div>
    
    <!-- 风格6：商务黑 -->
    <div class="phone-page" id="page6">
      <div class="page-header">
        <button class="back-btn" id="back6"><i class="fa fa-chevron-left"></i></button>
        <h1 class="page-title">修改手机号</h1>
      </div>
      
      <div class="content">
        <p class="page-description">请输入新的手机号并完成验证以修改</p>
        
        <div class="current-phone">
          <span class="current-phone-label">当前手机号</span>
          <span class="current-phone-number">134****1234</span>
        </div>
        
        <form id="phoneForm6">
          <div class="form-group">
            <label class="form-label" for="newPhone6">新手机号</label>
            <input type="tel" class="form-control" id="newPhone6" placeholder="请输入新手机号" required pattern="1[3-9]\d{9}">
          </div>
          
          <div class="form-group">
            <label class="form-label" for="verifyCode6">验证码</label>
            <div class="verify-code-group">
              <input type="text" class="form-control verify-code-input" id="verifyCode6" placeholder="请输入验证码" required pattern="\d{6}">
              <button type="button" class="get-code-btn" id="getCode6">获取验证码</button>
            </div>
          </div>
          
          <div class="form-group">
            <label class="form-label" for="password6">登录密码</label>
            <input type="password" class="form-control" id="password6" placeholder="请输入登录密码确认" required>
          </div>
          
          <button type="submit" class="btn-primary" id="submit6" disabled>确认修改</button>
        </form>
        
        <div class="security-tips">
          <div class="tips-title">
            <i class="fa fa-shield"></i> 安全提示
          </div>
          <ul class="tips-list">
            <li>修改手机号后，将使用新手机号登录</li>
            <li>验证码有效期为5分钟</li>
            <li>如遇问题，请联系客服</li>
            <li>保护好您的账号信息，勿向他人泄露</li>
          </ul>
        </div>
      </div>
    </div>
  </div>
  
  <!-- Bootstrap JS -->
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
  
  <script>
    // 当前状态
    let currentStyle = 1;
    
    // DOM元素
    const switcherToggle = document.querySelector('.switcher-toggle');
    const switcher = document.querySelector('.style-switcher');
    const switcherClose = document.querySelector('.switcher-close');
    const switcherOptions = document.querySelectorAll('.switcher-option');
    const phonePages = {
      1: document.getElementById('page1'),
      2: document.getElementById('page2'),
      3: document.getElementById('page3'),
      4: document.getElementById('page4'),
      5: document.getElementById('page5'),
      6: document.getElementById('page6')
    };
    const bodyElement = document.body;
    
    // 初始化
    function init() {
      // 切换器控制
      switcherToggle.addEventListener('click', toggleSwitcher);
      switcherClose.addEventListener('click', toggleSwitcher);
      
      // 切换样式
      switcherOptions.forEach(option => {
        option.addEventListener('click', function() {
          const style = parseInt(this.getAttribute('data-style'));
          switchStyle(style);
          toggleSwitcher();
        });
      });
      
      // 初始化所有页面的交互
      initPageInteractions();
    }
    
    // 初始化页面交互
    function initPageInteractions() {
      // 为每个页面初始化交互
      for (let i = 1; i <= 6; i++) {
        // 返回按钮
        const backBtn = document.getElementById(`back${i}`);
        backBtn.addEventListener('click', function() {
          alert('返回上一页');
        });
        
        // 获取验证码按钮
        const getCodeBtn = document.getElementById(`getCode${i}`);
        const newPhoneInput = document.getElementById(`newPhone${i}`);
        
        getCodeBtn.addEventListener('click', function() {
          const phone = newPhoneInput.value.trim();
          
          // 验证手机号格式
          if (!/^1[3-9]\d{9}$/.test(phone)) {
            alert('请输入有效的手机号');
            return;
          }
          
          // 模拟发送验证码
          let countdown = 60;
          getCodeBtn.disabled = true;
          getCodeBtn.classList.add('disabled');
          getCodeBtn.textContent = `重新发送(${countdown}s)`;
          
          const timer = setInterval(() => {
            countdown--;
            getCodeBtn.textContent = `重新发送(${countdown}s)`;
            
            if (countdown <= 0) {
              clearInterval(timer);
              getCodeBtn.disabled = false;
              getCodeBtn.classList.remove('disabled');
              getCodeBtn.textContent = '获取验证码';
            }
          }, 1000);
          
          alert(`验证码已发送至 ${phone}，请注意查收`);
        });
        
        // 输入框验证
        const verifyCodeInput = document.getElementById(`verifyCode${i}`);
        const passwordInput = document.getElementById(`password${i}`);
        const submitBtn = document.getElementById(`submit${i}`);
        
        // 实时验证表单
        function checkForm() {
          const phoneValid = /^1[3-9]\d{9}$/.test(newPhoneInput.value.trim());
          const codeValid = /^\d{6}$/.test(verifyCodeInput.value.trim());
          const passwordValid = passwordInput.value.length >= 6;
          
          submitBtn.disabled = !(phoneValid && codeValid && passwordValid);
        }
        
        newPhoneInput.addEventListener('input', checkForm);
        verifyCodeInput.addEventListener('input', checkForm);
        passwordInput.addEventListener('input', checkForm);
        
        // 表单提交
        const form = document.getElementById(`phoneForm${i}`);
        form.addEventListener('submit', function(e) {
          e.preventDefault();
          
          // 模拟提交
          alert(`手机号修改成功！新手机号为：${newPhoneInput.value}`);
        });
      }
    }
    
    // 切换样式选择器显示/隐藏
    function toggleSwitcher() {
      switcher.classList.toggle('hidden');
    }
    
    // 关闭所有页面
    function closeAllPages() {
      Object.values(phonePages).forEach(page => {
        page.classList.remove('active');
      });
    }
    
    // 切换样式
    function switchStyle(style) {
      // 移除所有样式类
      bodyElement.classList.remove('style-1', 'style-2', 'style-3', 'style-4', 'style-5', 'style-6');
      
      // 添加当前样式类
      bodyElement.classList.add(`style-${style}`);
      
      // 更新当前样式
      currentStyle = style;
      
      // 更新切换器选中状态
      switcherOptions.forEach(option => {
        option.classList.remove('active');
        if (parseInt(option.getAttribute('data-style')) === style) {
          option.classList.add('active');
        }
      });
      
      // 显示对应页面
      closeAllPages();
      phonePages[style].classList.add('active');
    }
    
    // 键盘导航
    document.addEventListener('keydown', function(e) {
      if (e.key === 'ArrowLeft') {
        let prev = currentStyle - 1;
        if (prev < 1) prev = 6;
        switchStyle(prev);
      } else if (e.key === 'ArrowRight') {
        let next = currentStyle + 1;
        if (next > 6) next = 1;
        switchStyle(next);
      }
    });
    
    // 启动
    init();
  </script>
</body>
</html>
